package DAITINGTING.unit4;

public class Math_ {
    public static void main(String[] args) {
        System.out.println("计算π/5的正弦值:"+Math.sin(Math.PI/5));
        System.out.println("输出1000的平方根:"+Math.sqrt(1000));
        System.out.println("2的10次方:"+Math.pow(2,10));
        System.out.println("100.9的向下取整:"+Math.floor(100.9));
        System.out.println("100.1的向上取整:"+Math.ceil(100.1));
        System.out.println("100.4四舍五入:"+Math.rint(100.4));
        System.out.println("100.5四舍五入:"+Math.round(100.5));

    }
}
